word = "日月之行，若出其里，星汉灿烂，若出其里："
result_one = word.replace(";","。")
print(result_one)
result_two = word.replace(";","。",1)
print(result_two)

name = "小明"
age = 20
interest = "唱歌"
specialty = "打篮球"
result_one = "你好！我的名字是{}，今年我{}岁了,兴趣是{},特长是{}。".format(name, age, interest, specialty)
print(result_one)

name = "小明"
age = 20
interest = "唱歌"
specialty = "打篮球"
result = "你好！我的名字是{}，今年我{}岁了,兴趣是{},特长是{}。".format(name, age, interest, specialty)
x = print(result)

result_two = "你好！我的名字是{}，今年我{}岁了,兴趣是{},特长是{}。".format(name, age, interest, specialty)
print(result_two)

word = "1 2 3 4 5"
result_one = word.split()
print(result_one)
word = "a,b,c,d,e"
result_two = word.split(",")
print(result_two)
result_thr = word.split(",", 3)
print(result_thr)

name = "小明"
result = "你好！我的名字是{}。".format(name)
x = print(result)

word = " 勤而行之 "
result = word.strip()
print((result))

word = "**勤而行之**"
result = word.strip("*")
result = word.strip()
print((result))
